package cn.piggy.test;

public class Father {
    public void fun(){
        System.out.println(this.getClass().getSimpleName());
        B b = new B();
    }
}


class A{
    private String a;

    public String getA() {
        return a;
    }

    public void setA(String a) {
        this.a = a;
    }
}

class B extends A{
    private String b;

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }
}